package com.bdqn.Demo.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.format.annotation.DateTimeFormat;
public class SysUser {

//  @DataTimeFormat(pattern="yyyy-MM-dd")
  @JSONField(format = "yyyy-MM-dd")
  private Integer id;
  //@NotEmpty(message="用户编码不能为空")
  private String account;
  //@NotEmpty(message="用户名称不能为空")
  private String realName;
  //@NotEmpty(message="用户密码不能为空")
  //@Length(min=6,max=10,message="用户密码长度为6-10")
  private String password;
  private Integer sex;
  //@Past(message="必须是一个过去的时间")
  @DateTimeFormat(pattern = "yyy-MM-dd")
  private String birthday;
  private String phone;
  private String address;
  private Integer roleId;
  private String idPicPath;
  private String workPicPath;
  private Integer createdUserId;
  private String createdTime;
  private Integer updatedUserId;
  private String updatedTime;

  public SysUser(Integer id, String account, String realName, String password, Integer sex, String birthday, String phone, String address, Integer roleId, String idPicPath, String workPicPath, Integer createdUserId, String createdTime, Integer updatedUserId, String updatedTime) {
    this.id = id;
    this.account = account;
    this.realName = realName;
    this.password = password;
    this.sex = sex;
    this.birthday = birthday;
    this.phone = phone;
    this.address = address;
    this.roleId = roleId;
    this.idPicPath = idPicPath;
    this.workPicPath = workPicPath;
    this.createdUserId = createdUserId;
    this.createdTime = createdTime;
    this.updatedUserId = updatedUserId;
    this.updatedTime = updatedTime;
  }


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }


  public String getAccount() {
    return account;
  }

  public void setAccount(String account) {
    this.account = account;
  }


  public String getRealName() {
    return realName;
  }

  public void setRealName(String realName) {
    this.realName = realName;
  }


  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }


  public Integer getSex() {
    return sex;
  }

  public void setSex(Integer sex) {
    this.sex = sex;
  }


  public String getBirthday() {
    return birthday;
  }

  public void setBirthday(String birthday) {
    this.birthday = birthday;
  }


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public Integer getRoleId() {
    return roleId;
  }

  public void setRoleId(Integer roleId) {
    this.roleId = roleId;
  }


  public String getIdPicPath() {
    return idPicPath;
  }

  public void setIdPicPath(String idPicPath) {
    this.idPicPath = idPicPath;
  }


  public String getWorkPicPath() {
    return workPicPath;
  }

  public void setWorkPicPath(String workPicPath) {
    this.workPicPath = workPicPath;
  }


  public Integer getCreatedUserId() {
    return createdUserId;
  }

  public void setCreatedUserId(Integer createdUserId) {
    this.createdUserId = createdUserId;
  }


  public String getCreatedTime() {
    return createdTime;
  }

  public void setCreatedTime(String createdTime) {
    this.createdTime = createdTime;
  }


  public Integer getUpdatedUserId() {
    return updatedUserId;
  }

  public void setUpdatedUserId(Integer updatedUserId) {
    this.updatedUserId = updatedUserId;
  }


  public String getUpdatedTime() {
    return updatedTime;
  }

  public void setUpdatedTime(String updatedTime) {
    this.updatedTime = updatedTime;
  }

}
